﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Prism.Mvvm;

namespace MachineVision.Models
{
    public class NavigationItem : BindableBase
    {

        public NavigationItem(string key,string name,
        string icon,
        string pagename,
        ObservableCollection<NavigationItem> item = null)
        {
            Key = key;
            Name = name;
            Icon = icon;
            PageName = pagename;
            Items = item;
        }
        private string key;
        public string Key
        {
            get { return key; }
            set { SetProperty(ref key, value); }
        }


        private string _name;
        public string Name
        {
            get { return _name; }
            set { SetProperty(ref _name, value); }
        }
        private string _icon;
        public string Icon
        {
            get { return _icon; }
            set { SetProperty(ref _icon, value); }
        }
        private string _pageName;
        public string PageName
        {
            get { return _pageName; }
            set { SetProperty(ref _pageName, value); }
        }
        private ObservableCollection<NavigationItem> _items;
        public ObservableCollection<NavigationItem> Items
        {
            get { return _items; }
            set { SetProperty(ref _items, value); }
        }

    }
}
